package com.yudean.esb.dao.erp;

import com.yudean.esb.domain.erp.ErpIdsApInvoice;
import com.yudean.esb.mapper.erp.ErpIdsApInvoiceMapper;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;

@Repository
@Scope("prototype")
public class ErpApInvoiceDao {

    @Resource
    public ErpIdsApInvoiceMapper erpIdsApInvoiceMapper;

    public int insertSelective(ErpIdsApInvoice record) {
        return erpIdsApInvoiceMapper.insertSelective(record);
    }

    public int batchInsertErpIdsApInvoiceData(List<ErpIdsApInvoice> erpIdsApInvoiceList) {
        return erpIdsApInvoiceMapper.batchInsertErpIdsApInvoiceData(erpIdsApInvoiceList);
    }

    public int deleteApInvoiceByControlId(long controlId) {
        return erpIdsApInvoiceMapper.deleteApInvoiceByControlId(controlId);
    }
}
